package com.ruoyi.multab.enums;

public enum ModelEnum {
	
	Model_1("1","模型1"),
	Model_2("2","模型2"),
	Model_3("3","模型3");

    private String code;
    private String name;
    ModelEnum(String code, String name){
        this.code = code;
        this.name = name;
    }

    public static String getName(String code){
        for (ModelEnum obj : ModelEnum.values()) {
            if(obj.getCode().equals(code)){
                return obj.getName();
            }
        }
        return "";
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }
}
